package com.zpark.controller;


import com.zpark.common.Response;
import com.zpark.entity.Project;
import com.zpark.service.impl.ProjectServiceImpl;
import org.springframework.boot.autoconfigure.session.RedisSessionProperties;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author lx
 * @since 2024-03-18
 */
@Controller
@RequestMapping("/project")
public class ProjectController {
    @Resource
    private ProjectServiceImpl projectService;
    @GetMapping("/selectById")
    public List<Project> selectById(int cvId){
        List projects = projectService.selectByCvId(cvId);
        return projects;
    }
}
